#include "OpenGLTexture.h"
#include "../../Config.h"
#ifdef __COMPILE_WIN32__
#include <windows.h>
#endif
#include <GL/gl.h>

COpenGLTexture::COpenGLTexture()
{
}

COpenGLTexture::~COpenGLTexture()
{
}

void COpenGLTexture::ActivateTexture()
{
	glEnable(GL_TEXTURE_2D);
	glBindTexture(GL_TEXTURE_2D,IDTexture);
}

void COpenGLTexture::DeActivateTexture()
{
	glDisable(GL_TEXTURE_2D);
}

void COpenGLTexture::SetLen(vector2du32 nLen)
{
	Len = nLen;
}

vector2du32 &COpenGLTexture::GetLen()
{
	return Len;
}
